home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / benchmarks / itc / gcc / tm-vms.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-30  |  1.8 KB  |  49 lines

  1. /* Output variables, constants and external declarations, for GNU compiler.
  2.    Copyright (C) 1988 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY.  No author or distributor
  8. accepts responsibility to anyone for the consequences of using it
  9. or for whether it serves any particular purpose or works at all,
  10. unless he says so in writing.  Refer to the GNU CC General Public
  11. License for full details.
  12.  
  13. Everyone is granted permission to copy, modify and redistribute
  14. GNU CC, but only under the conditions described in the
  15. GNU CC General Public License.   A copy of this license is
  16. supposed to have been given to you along with GNU CC so you
  17. can know your rights and responsibilities.  It should be in a
  18. file named COPYING.  Among other things, the copyright notice
  19. and this notice must be preserved on all copies.  */
  20.  
  21. #include "tm-vax.h"
  22.  
  23. #undef CPP_PREDEFINES
  24. #undef TARGET_VERSION
  25. #undef TARGET_DEFAULT
  26. #undef CALL_USED_REGISTERS
  27. #undef MAYBE_VMS_FUNCTION_PROLOGUE
  28.  
  29. /* Predefine this in CPP because VMS limits the size of command options
  30.    and GNU CPP is not used on VMS except with GNU C.  */
  31. #define CPP_PREDEFINES "-Dvax -Dvms -DVMS -D__GNU__ -D__GNUC__"
  32.  
  33. /* By default, allow $ to be part of an identifier.  */
  34. #define DOLLARS_IN_IDENTIFIERS 1
  35.  
  36. #define TARGET_DEFAULT 1
  37. #define TARGET_VERSION printf ("(vax vms)");
  38.  
  39. #define CALL_USED_REGISTERS {1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1}
  40.  
  41. #define MAYBE_VMS_FUNCTION_PROLOGUE(FILE)    \
  42. { extern char *current_function_name;        \
  43.   if (!strcmp ("main", current_function_name))    \
  44.     fprintf(FILE, "\tjsb _c$main_args\n"); }
  45.  
  46. #define ASM_OUTPUT_EXTERNAL(FILE,DECL,NAME)        \
  47. { if (DECL_INITIAL (DECL) == 0 && TREE_CODE (DECL) != FUNCTION_DECL)    \
  48.     fprintf (FILE, ".comm _%s,0\n", NAME); }
  49.